package org.dromara.agriculture.domain.vo;

import org.dromara.agriculture.domain.AgricultureCropBatch;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 作物批次视图对象 agriculture_crop_batch
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AgricultureCropBatch.class)
public class AgricultureCropBatchVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 批次ID
     */
    @ExcelProperty(value = "批次ID")
    private Long batchId;

    /**
     * 批次名称
     */
    @ExcelProperty(value = "批次名称")
    private String batchName;

    /**
     * 种质ID
     */
    @ExcelProperty(value = "种质ID")
    private Long germplasmId;

    /**
     * 地块ID
     */
    @ExcelProperty(value = "地块ID")
    private Long landId;

    /**
     * 种植面积（亩）
     */
    @ExcelProperty(value = "种植面积", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "亩=")
    private Long cropArea;

    /**
     * 开始时间
     */
    @ExcelProperty(value = "开始时间")
    private String startTime;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    private Long orderNum;

    /**
     * 负责人Id
     */
    @ExcelProperty(value = "负责人Id")
    private Long batchHead;

    /**
     * 基地ID
     */
    @ExcelProperty(value = "基地ID")
    private Long baseId;

    /**
     * 部门ID
     */
    @ExcelProperty(value = "部门ID")
    private Long deptId;

    /**
     * 用户ID
     */
    @ExcelProperty(value = "用户ID")
    private Long userId;


}
